/**
Author ffpan
Date 2010-04-04
Version 1.0
**/
$(document).ready(function(){
	if($("#ordersel")){
		$("#ordersel").bind("change" , function(){
			var val = $(this).val();
			location.href = val;
		});
		
		if(document.getElementById("ordersel")){
			document.getElementById("ordersel").selectedIndex = $("#hindex").val()-1;
		}
	}

}); 

function getMsg(id){
	var data = {
		action : "read", 
		mid :id
	}
	var url = "sendmsg_post.php";
	$.get(url , data, function(txt){
		if(txt=="success"){
			var dis = document.getElementById("msg"+id).style.display;
			document.getElementById("msg"+id).style.display = dis==""?"none":"";
		}
	}); 
}